<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::group('invite',function (){
    Route::post('publishInvite', 'invite.InviteController/publishInvite');
    Route::get('test', 'invite.InviteController/test');
    Route::get('inviteList/:userId', 'invite.InviteController/inviteList');
    Route::get('postDetailList/:postObjKey', 'invite.InviteController/postDetailList');
    Route::post('sendComment', 'invite.InviteController/sendComment');
    Route::delete('delComment/:userId/:objKey', 'invite.InviteController/delComment');
    Route::get('likeComment/:objKey', 'invite.InviteController/likeComment');
    Route::get('attention/:attentionUserId/:userId', 'invite.InviteController/attention');
});

Route::group('onlineChat',function (){
    Route::get('msgList/:userId', 'onlineChat.DialogBoxController/msgList');
    Route::get('closeSocket/:userId', 'onlineChat.DialogBoxController/closeSocket');
    Route::get('historyRecord/:roomNumber/:page/:pageSize', 'onlineChat.DialogBoxController/historyRecord');
});

